﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Ajax;
using Domain.Entity;

namespace Pro260Website.Models
{
    public class SliderImageModel
    {
        public IEnumerable<Game> Games { get; set; }
        public int CurrentPageNumber { get; set; }
        public int NextPageNumber { get; set; }
        public int PreviousPageNumber { get; set; }
        public int TotalPageCount { get; set; }
        public int StartingItem { get; set; }

        public AjaxOptions GameAjaxOptions = new AjaxOptions
                                                 {
                                                     UpdateTargetId = "gameUpdateItem",
                                                 };

        public int TotalNumberOfItems
        {
            get { return Games.Count(); }
        }
    }
}                                                                            